//
//  NetWorkTool.h
//  ParagonCure
//
//  Created by 牛晴晴 on 16/7/5.
//  Copyright © 2016年 SH. All rights reserved.
//

#import <Foundation/Foundation.h>
//成功回调
typedef void(^SuccessCompletedBlock)(id responseObject);

//失败回调
typedef void (^FailureCompletedBlock)(NSError *error);



@interface NetWorkTool : AFHTTPSessionManager



//单例 实例化
+(instancetype)shareManager;

//自定义的 GET请求
- (void)GET_RequestWithUrlString:(NSString *)urlString parmas:(NSDictionary *)params successBlock:(SuccessCompletedBlock)success failureBlock:(FailureCompletedBlock)failure;

//自定义的POST 请求

- (void)POST_RequestWithUrlString:(NSString *)urlString parmas:(NSDictionary *)params successBlock:(SuccessCompletedBlock)success  failureBlock:(FailureCompletedBlock)failure;

@end
